package com.hsgene.supplier.service.api.impl;

import com.hsgene.common.util.exception.CommonErrorCode;
import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.result.NullObject;
import com.hsgene.supplier.service.api.GeneticAccountService;
import com.hsgene.user.domain.GeneticTestingOperationAccount;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @Description: //TODO
 * @ProjectName: hdas-geneshop-server
 * @Package: com.hsgene.supplier.service.api.impl
 * @Author: FX
 * @CreateDate: 2019/1/4 16:20
 * @Version: 1.0
 * Copyright: Copyright (c) 2019
 */
@Component
public class GeneticAccountServiceImpl implements GeneticAccountService {

    private final static Logger LOGGER = LoggerFactory.getLogger(GeneticAccountServiceImpl.class);

    @Override
    public ApiResult<NullObject> addAccount(GeneticTestingOperationAccount account) {
        LOGGER.error("用户服务不可用");
        return ApiResult.fail(CommonErrorCode.USER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<NullObject> addAgencyAccount(GeneticTestingOperationAccount account) {
        LOGGER.error("用户服务不可用");
        return ApiResult.fail(CommonErrorCode.USER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<NullObject> updateAgencyAccount(GeneticTestingOperationAccount account) {
        LOGGER.error("用户服务不可用");
        return ApiResult.fail(CommonErrorCode.USER_SERVICE_NOT_AVAILABLE);
    }

    @Override
    public ApiResult<NullObject> resetAccountPassword(String accountId) {
        LOGGER.error("用户服务不可用");
        return ApiResult.fail(CommonErrorCode.USER_SERVICE_NOT_AVAILABLE);
    }
}
